<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="ebb365,ebb365,ebb365">
		<meta http-equiv="description" content="ebb365">
		<title>首页资讯分类修改</title>
		<link rel="stylesheet" type="text/css" href="/admin/css/css.css">
		<script type="text/javascript">
				function checkForm(){
				  if(document.forms[0].id.value==-1){
				     alert('请选择');
				     return false;
				  }
				  return true;
				}
		</script>
	</head>
	<body>		
	
		<table width="700" border="1" align="center">
			<tr>
				<td align="center">
					<b>首页资讯分类视图</b>
				</td>
				<td align="center">
					<b>具体操作</b>
				</td>
			</tr>
			<tr>
				<td>
					<br/>
					<logic:present name="newsClassTree_left">
						<bean:write name="newsClassTree_left" filter="false" />
					</logic:present>
					<br/><br/>
				</td>
				<td valign="top">
					<html:form
						action="/admin/homeSite/newsClass.do?action=update"
						method="post" onsubmit="return checkForm();">
						<br /><br />
						选择分类：<html:select property="id" size="1">
									<html:option value="-1">---- 根目录 ----</html:option>
									<logic:present name="newsClassTree_right">
										<bean:write name="newsClassTree_right" filter="false" />
									</logic:present>
								</html:select>
						<br/><br />
						<html:submit>&nbsp;选择修改&nbsp;</html:submit>
						<br>
					</html:form>
					
					<logic:present name="homeSiteNewsClass">
						<html:form action="/admin/homeSite/newsClass.do?action=updateDo" 
								method="post">
								<br />
							<html:hidden property="id" value="${homeSiteNewsClass.id}"/>
							<html:hidden property="parenId" value="${homeSiteNewsClass.parenId}"/>
							<br/><br/>
							分类类型选择：&nbsp;
							
							<logic:notEmpty name="classTypeList" scope="request">
								<html:select property="classTypeId">
									<logic:iterate id="list" name="classTypeList">
									    <option value="${list.id}" <c:if test="${homeSiteNewsClass.bmClassType.id==list.id}">selected</c:if>>${list.classTypeName}</option>
								    </logic:iterate>
								 </html:select>
							</logic:notEmpty>
							<br/><br/>
							是否删除：<html:text property="isDel" value="${homeSiteNewsClass.isDel}"></html:text><br/><br />
							分类名：<html:text property="names" value="${homeSiteNewsClass.names}"></html:text><br/><br />
							<%--排序：<html:text property="sequence" value="${pro.sequence}"></html:text><br><br />--%>
							 层 ：<html:text property="layer" value="${homeSiteNewsClass.layer}"></html:text><br><br />
							<html:submit>&nbsp;确定修改&nbsp;</html:submit>
						</html:form>
					</logic:present>
				</td>
			</tr>
		</table>
		<logic:present name="msg">
			<bean:write name="msg" filter="false"/>
		</logic:present>
	</body>
</html>